package com.doit.sparksql.day01

import org.apache.log4j.{Level, Logger}
import org.apache.spark.sql.SparkSession

/**
 * @DATE 2022/1/13/10:10
 * @Author MDK
 * @Version 2021.2.2
 * */
object SQLUtil {
  Logger.getLogger("org").setLevel(Level.ERROR)
  def getSession:SparkSession={
    val spark = SparkSession
      .builder()
      .master("local[*]")
      .appName("demo")
      .getOrCreate()
    spark
  }
}
